package com.youan.dao;

import com.youan.bean.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDao {
    Orders listCustomerById(Integer id);

    List<Orders> listOrders(Integer cid);

    int insertOrders(Orders orders);

    @Select(value = "select * from orders where oname = #{name}")
    Orders byName(String name);

}
